package com.fy.dao;

import com.fy.entity.Forum;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface ForumMapper {
    @Select("select * from forum")
    List<Forum> findAll();
    @Insert("INSERT into forum(forum_id,for_id) values (#{forum_id},#{for_id})")
    int insert_forum(@Param("forum_id") String forum_id,@Param("for_id") String for_id);
}
